#!/usr/bin/env python
# -*- coding: utf-8 -*-


from .rpc import RPC
from .env import Env

from .addons import models


class ODOO(object):
    def __init__(self, host, db):
        self.rpc = RPC(host, db)
        # self.env = Env(self.rpc)
        self.env = Env(self.rpc, models)

        # self.addons = models

    @property
    def session(self):
        return self.rpc.session

    @property
    def version(self):
        return self.rpc.version
